<template>
  <!-- 弯曲延伸 -->
  <div class="bendingExtension">
    <el-table
      ref="multipleTable"
      :data="tableData"
      tooltip-effect="dark"
      style="width: 50%"
      v-loading="loading"
    >
      <el-table-column label="功能" align="center">
        <template slot-scope="scope">
          {{scope.row.name}}
        </template>
      </el-table-column>
      <el-table-column label="是否扣减弯曲延伸" align="center">
        <template slot-scope="scope">
          <el-radio-group v-model="scope.row.value">
            <el-radio label="0">是</el-radio>
            <el-radio label="1">否</el-radio>
          </el-radio-group>
        </template>
      </el-table-column>
    </el-table>

    <div class="submitForm">
      <el-button type="primary" @click="preservation">保存</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "BendingExtension",
  components: {},
  props: {},
  data() {
    return {
      loading: false,
      tableData: [
        {
          date: "2016-05-03",
          name: "料牌",
          value: '0',
        },
        {
          date: "2016-05-02",
          name: "翻样软件",
          value: '1',
        },
        {
          date: "2016-05-04",
          name: "出库",
          value: '0',
        },
      ],
    };
  },
  filters: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    preservation() {
      this.tableData.map(item => item.editTable = false)
      console.log(this.tableData)
    }
  },
};
</script>

<style scoped lang="scss"></style>
